local lsp_shimou = fk.CreateSkill {
    name = "lsp_shimou",
}

Fk:loadTranslationTable {
    ["lsp_shimou"] = "恃缪",
    [":lsp_shimou"] = "出牌阶段限一次，你可以选择秘密选择一名其他角色并将一张【杀】移出游戏。",

}

lsp_shimou:addEffect("active", {
    anim_type = "support",
    no_indicate = true,
    prompt = "恃缪：你可以秘密选择一名角色并将一张【杀】移出游戏",
    card_num = 1,
    target_num = 1,
    can_use = function(self, player)
        local ids = #table.filter(player:getCardIds("h"), function(u) return Fk:getCardById(u).trueName == "slash" end)
        return player:usedSkillTimes(lsp_shimou.name, Player.HistoryPhase) == 0 and not player:isKongcheng() and ids > 0
    end,
    card_filter = function(self, player, to_select, selected)
        return #selected == 0 and Fk:getCardById(to_select).trueName == "slash"
    end,
    target_filter = function(self, player, to_select, selected)
        return #selected == 0 and to_select ~= player
    end,
    on_use = function(self, room, effect)
        local player = effect.from
        local target = effect.tos[1]
        room:addTableMarkIfNeed(player, "lsp_shimou", target.id)
        room:setCardMark(Fk:getCardById(effect.cards[1]), "lsp_shimou_id", target.id)
        player:addToPile("#shimou_po", effect.cards[1], false, lsp_shimou.name, player)
    end,
})

return lsp_shimou
